package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.ApartmentInfo;
import com.atguigu.lease.model.entity.FacilityInfo;
import com.atguigu.lease.model.entity.LabelInfo;
import com.atguigu.lease.web.app.vo.apartment.ApartmentItemVo;
import com.atguigu.lease.web.app.vo.graph.GraphVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.math.BigDecimal;
import java.util.List;

/**
* @author liubo
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Mapper
* @createDate 2023-07-26 11:12:39
* @Entity com.atguigu.lease.model.entity.ApartmentInfo
*/
public interface ApartmentInfoMapper extends BaseMapper<ApartmentInfo> {

//    根据 公寓的id 查询 公寓标签信息
    List<LabelInfo> selectApartmentLabel(Long id);


//   根据 公寓的id 查询 公寓图片列表
    List<GraphVo> selectApartmentGraph(Long id);


//    根据 公寓的id 查询公寓的配套
    List<FacilityInfo> selectApartmentFacility(Long id);

//    根据 公寓id 查询 当前公寓所属房间最小的租金的最小值
    BigDecimal selectApartmentMinRent(Long id);
}




